Main Page

Selection Sort

Selection Sort is and algorithm that splits the array in two parts: Sorted and Unsorted. The Sorted part is at the beginning of the array and Unsorted part afterwards. Each pass, initially we assume the first element to be the smallest then we loop through the whole array and select the smallest element. At the end of the pass we swap smallest element to the sorted array.

Day 7 of "100 days of coding".


Sorted Array

Answer...

Add to Array Sort Array
Sorting Array...